import { WeaTools } from 'ecCom'

//获取List
export const getList = params => {
	return WeaTools.callApi('/api/fna/invoiceLedger/getWorkflowInvoiceList','POST', params);
}

//识别
export const doRecognition = params => {
	return WeaTools.callApi('/api/fna/invoiceLedger/doRecognition','POST', params);
}

//获取fieldId
export const getFieldId = (params={}) => {
	return WeaTools.callApi('/api/fna/invoiceLedger/getInvoiceFieldId', 'GET', params);
}

//生成报销单
export const addDetail = (params={}) => {
	return WeaTools.callApi('/api/fna/invoiceLedger/writeBackToWorkflow', 'GET', params);
}

//获取基本信息
export const getInvoiceCloudToken = params => {
	return WeaTools.callApi('/api/fna/fnaEmbileMicroReport/getInvoiceCloudToken','GET', params);
}

//发票云和ecology id 转换   
export const getFidOrEcid = (params={}) => {
	return WeaTools.callApi('/api/fna/invoiceLedger/getFidOrEcid', 'GET', params);
}